layui.use([
	'exutil', 
	'jquery', 
	'exrouter',
	'exconfig'
], function() {
	var $ = layui.$,
		exutil = layui.exutil,
		exrouter = layui.exrouter,
		exconfig = layui.exconfig;

	var els = {};

	var datas = {};

	var methods = {
		init: function() {
			
			exutil.showLoading('正在跳转中...')

			if(exutil.getCookie(exconfig.tokenKey)){
				top.location.href = exrouter.base.home();
			}else{
				setTimeout(function() {
					top.location.href = exrouter.base.login();
				}, 2000);
			}
		}
	};

	// methods.init();
});
